package com.manager.car.dao;

import java.util.List;

import com.manager.car.po.DepartmentInfo;

public class DepartmentInfoDaoImpl extends BaseDao<DepartmentInfo> implements IDepartmentInfoDao{
	    //根据Id查询
		public DepartmentInfo queryId(Integer id) {
			return this.getHibernateTemplate().get(DepartmentInfo.class, id);
		}
	    //查询全部
		@SuppressWarnings({ "unchecked", "deprecation" })
		public List<DepartmentInfo> queryAll() {
				return (List<DepartmentInfo>) this.getHibernateTemplate().find("from DepartmentInfo");
		}
	   
}
